﻿using Orther.Model.param;
using Orther.Service.Miyao;
using Project.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;

namespace Orther.BLL.Miyao
{
    public class MxPeijianBLL
    {
        private MxPeijianService mxPeijianService = new MxPeijianService();
        public async Task<TData<List<qx_mx_peijian>>> GetList(MxPeijianParam param, int? topNum)
        {
            TData<List<qx_mx_peijian>> obj = new TData<List<qx_mx_peijian>>();
            if (param.nrId == Guid.Parse("00000000-0000-0000-0000-000000000000"))
            {
                obj.Data = new List<qx_mx_peijian>();
            }
            else
            {
                obj.Data = await mxPeijianService.GetList(param, topNum);
            }            
            obj.Tag = 1;
            return obj;
        }

    }
}
